package org.example.demo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.List;

@Getter
@Setter
public class ShopCartParam {

//    如果能做多表查询，那么购物车表只需要保留商品id，其他与商品相关的都可以删掉

    @ApiModelProperty("购物车项目id")
    private Long iid;

    @ApiModelProperty("商品图url")
    private String imgURL;

    @ApiModelProperty("商品名")
    private String name;

    @ApiModelProperty("商品描述")
    private String desc;

    @ApiModelProperty("商品单价")
    private BigDecimal price;

    @ApiModelProperty("商品数量")
    private Integer count;

    @ApiModelProperty(value = "产品id的集合")
    private List<Long> productIds;


    @ApiModelProperty(value = "购买人id")
    private Long userId;

}
